Clean up WordPress.com connections for deleted sites - #4350
Conversation
📊 Performance Test ResultsComparing c47d765 vs trunk app-size
site-editor
site-startup
Results are median values from multiple test runs. Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change (<50ms diff) |
@bcotrim What means
Could you please also elaborate on this part? What are the steps? |
It's just a local site you don't mind deleting
In
|
nightnei
left a comment
There was a problem hiding this comment.
LGTM and works as expected 👍
Related issues
How AI was used in this PR
Codex assisted with repository exploration, implementation, focused regression tests, manual shared-config validation, and PR drafting. The final scope and behavior were reviewed during implementation.
Proposed Changes
Testing Instructions
npm run typecheck.npm test -- apps/cli/migrations/tests/07-cleanup-orphaned-connected-sites.test.ts packages/common/lib/tests/connected-sites.test.ts apps/cli/commands/site/tests/delete.test.ts.studio site delete --no-files, and confirm itslocalSiteIdis removed from~/.studio/shared.json.shared.json, runstudio site listand confirm the migration removes the orphan while preserving connections for registered sites.Pre-merge Checklist